//
//  QRCodeManager.h
//  二维码识别
//
//  Created by 王虎彬 on 16/6/13.
//  Copyright © 2016年 王虎彬. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>



@interface QRCodeManager : NSObject


//提供一个快速初始化的方法(单例)
+ (instancetype)shareInstance;

//对外提供一个生成二维码的接口
- (UIImage *)generateHDImageWithMsg:(NSString *)inputMsg fgImage:(UIImage *)fgImage;

//识别二维码接口
- (NSArray *)detectorQRCodeWithQRCodeImage:(UIImage *)qrCodeImage;

//扫描二维码接口
- (void)startScanningQRCodeWithInView:(UIView *)inView  scanView:(UIView *)scanView resultCallback:(void(^)(NSArray *results))callback;


@end
